package com.leyou.item.mapper;

import com.leyou.common.mapper.LyBaseMapper;
import com.leyou.item.dto.CategoryDTO;
import com.leyou.item.entity.Category;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CategoryMapper extends LyBaseMapper<Category> {
    @Select("select id,name from tb_category where parent_id=#{id}")
    List<CategoryDTO> queryCategoryById(Long id);
}
